package com.api.demo.dto.business.order;

import com.api.demo.dto.business.ApiDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @description: 新增订单DTO
 * @author: yanming
 * @createDate: 2022/12/28 11:44
 */
@Data
@ApiModel(description = "新增订单Api参数")
@EqualsAndHashCode(callSuper = true)
public class AddOrUpdatePaymentOrderApiDTO extends ApiDTO implements Serializable {
    @ApiModelProperty("id不传则为新增")
    private Long id;

    @ApiModelProperty(value = "服务商id", required = true)
    @NotNull(message = "服务商ID不能为空")
    private Long taxId;

    @ApiModelProperty(value = "社会信用代码", required = true)
    @NotBlank(message = "社会信用代码不能为空")
    private String creditCode;


    @ApiModelProperty(value = "创客支付清单",required = true)
    @NotNull(message = "创客支付清单不能为空")
    List<AddPaymentOrderWorkerDTO> workerDTOList;

    @ApiModelProperty(value="任务参数", required = true)
    @NotNull(message = "任务参数不能为空")
    private ApiAddTaskDTO addTaskData;

    @ApiModelProperty(value = "订单回调地址", required = true)
    private String notifyUrl;
}